//
//  LKDailyRankCell.m
//  YLHelper
//
//  Created by she1323 on 2018/8/8.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKDailyRankCell.h"

@implementation LKDailyRankCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setJudegeIsTitle:(BOOL)judegeIsTitle{
    _judegeIsTitle = judegeIsTitle;
    if (_judegeIsTitle) {
        self.firstView.backgroundColor = blueDefault;
        self.secondView.backgroundColor = blueDefault;
        self.thirdView.backgroundColor = blueDefault;
        self.fourthView.backgroundColor = blueDefault;
        self.firstLabel.textColor = [UIColor whiteColor];
        self.secondLabel.textColor = [UIColor whiteColor];
        self.thirdLabel.textColor = [UIColor whiteColor];
        self.forthLabel.textColor = [UIColor whiteColor];
        self.firstLabel.text = @"排名";
        self.firstLabel.backgroundColor = blueDefault;
        self.firstLabel.layer.cornerRadius = 0;
        self.firstLabel.layer.masksToBounds = YES;
        self.secondLabel.text = @"隶属分公司";
        self.thirdLabel.text = @"姓名";
        if ([self.judgeurl isEqual:thirtyGuimoyejiListUrl]) {
                self.forthLabel.text = @"规模业绩(万元)";
        }else{
                self.forthLabel.text = @"年化业绩(万元)";
        }

    }else{
        self.firstView.backgroundColor = [UIColor whiteColor];
        self.secondView.backgroundColor = [UIColor whiteColor];
        self.thirdView.backgroundColor = [UIColor whiteColor];
        self.fourthView.backgroundColor = [UIColor whiteColor];
        self.firstLabel.textColor = [UIColor whiteColor];
        self.firstLabel.backgroundColor = blueDefault;
        self.firstLabel.layer.cornerRadius = 10;
        self.firstLabel.layer.masksToBounds = YES;
        self.secondLabel.textColor = lightGrayDefault;
        self.thirdLabel.textColor = lightGrayDefault;
        self.forthLabel.textColor = lightGrayDefault;
    }
}
-(void)setNianhuaModel:(LKDailySortRankModel *)nianhuaModel{
    _nianhuaModel = nianhuaModel;
    if (self.judegeIsTitle) {
        
    }else{
        self.firstLabel.text = _nianhuaModel.interestRateRanking;
        self.secondLabel.text = _nianhuaModel.branchName;
        self.thirdLabel.text = _nianhuaModel.name;
        self.forthLabel.text = _nianhuaModel.interestRateTest;
    }
}

-(void)setGuimoModel:(LKDailySortRankModel *)guimoModel{
    _guimoModel = guimoModel;
    if (self.judegeIsTitle) {
        
    }else{
        self.firstLabel.text = _guimoModel.investmentAmountSumRanking;
        self.secondLabel.text = _guimoModel.branchName;
        self.thirdLabel.text = _guimoModel.name;
        self.forthLabel.text = _guimoModel.investmentAmountSumTest;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
